package com.me.customerdemo.dao;

import com.me.customerdemo.pojo.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerMapper {

    /**
     * 查询所有客户
     */
    List<Customer> selectAll();

    Customer selectById(int id);
    /**
     * 修改客户信息
     */
    int updateById(Customer customer);

    /**
     * 删除客户信息
     */
    int deleteById(int id);

    /**
     * 添加客户信息
     */
    int apply(Customer customer);

    List<Customer> selectByCondition(Customer customer);

    List<Customer>selectByIds(List<Integer> ids);

    List<Customer> selectPage(@Param("start")int start0, @Param("pageSize")int pageSize0);

    List<Customer> selectByKeyword(String keyword);
}
